home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="EUC-KR"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX This file is generated from xml source: DO NOT EDIT XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> <title>mod_file_cache - Apache HTTP Server</title> <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> <link href="../images/favicon.ico" rel="shortcut icon" /></head> <body> <div id="page-header"> <p class="menu"><a href="../mod/">╕≡╡Γ</a> | <a href="../mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">┐δ╛ε</a> | <a href="../sitemap.html">╗τ└╠╞«╕╩</a></p> <p class="apache">Apache HTTP Server Version 2.2</p> <img alt="" src="../images/feather.gif" /></div> <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> <div id="path"> <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.2</a> > <a href="./">╕≡╡Γ</a></div> <div id="page-content"> <div id="preamble"><h1>╛╞╞──í ╕≡╡Γ mod_file_cache</h1> <div class="toplang"> <p><span>░í┤╔╟╤ ╛≡╛ε: </span><a href="../en/mod/mod_file_cache.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../ko/mod/mod_file_cache.html" title="Korean"> ko </a></p> </div> <table class="module"><tr><th><a href="module-dict.html#Description">╝│╕φ:</a></th><td>╕▐╕≡╕«┐í ┴ñ└√ ╞─└╧╡Θ└╗ ─│╜¼</td></tr> <tr><th><a href="module-dict.html#Status">╗≤┼┬:</a></th><td>Experimental</td></tr> <tr><th><a href="module-dict.html#ModuleIdentifier">╕≡╡Γ╕φ:</a></th><td>file_cache_module</td></tr> <tr><th><a href="module-dict.html#SourceFile">╝╥╜║╞─└╧:</a></th><td>mod_file_cache.c</td></tr></table> <h3>┐Σ╛α</h3> <div class="warning"> └╠ ╕≡╡Γ└║ ┴╢╜╔╟╪╝¡ ╗τ┐δ╟╪╛▀ ╟╤┤┘. <code class="module"><a href="../mod/mod_file_cache.html">mod_file_cache</a></code>╕ª ╗τ┐δ╟╧┐⌐ ╗τ└╠╞«╕ª ╛√╕┴└╕╖╬ ╕╕╡Θ▒Γ ╜▒▒Γ╢º╣«┐í └╠ ╣«╝¡╕ª ▓─▓─╚≈ └╨▒µ ╣┘╢⌡┤┘. </div> <p>░┼└╟ ║»╟╧┴÷ ╛╩░φ └┌┴╓ ┐Σ├╗╡╟┤┬ ╞─└╧└╗ <em>─│╜¼</em>┐í └·└σ╟╧┐⌐ ╝¡╣÷ ║╬╟╧╕ª ┴┘└╧ ╝÷ └╓┤┘. <code class="module"><a href="../mod/mod_file_cache.html">mod_file_cache</a></code>┤┬ └┌┴╓ ┐Σ├╗╡╟┤┬ <em>┴ñ└√</em> ╞─└╧└╗ ╡╬░í┴÷ ╣µ╜─└╕╖╬ ─│╜¼┐í └·└σ╟╤┤┘. ╝│┴ñ ┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐ <code class="module"><a href="../mod/mod_file_cache.html">mod_file_cache</a></code>░í ╞─└╧└╗ ┐¡░φ(open) <code>mmap()</code>╟╥┴÷ ╛╞┤╧╕Θ ╞─└╧└╗ ┐¡░φ <em>╞─└╧ ╟┌╡Θ</em>└╗ └·└σ╟╥┴÷ ░ß┴ñ╟╤┤┘. ╡╬ ╣µ╜─ ╕≡╡╬ ╞─└╧└╗ ╝¡║±╜║╟╧▒Γ└º╟╪ ╟╩┐Σ╟╤ └█╛≈└╟ └╧║╬╕ª (╞»╚≈ ╞─└╧ └╘├Γ╖┬ └█╛≈) ╞─└╧└╗ ┐Σ├╗╟╥ ╢º╕╢┤┘ ╕┼╣° ╟╧┤┬ ┤δ╜┼ ╝¡╣÷░í ╜├└█╟╥╢º ╟╤╣°╕╕ ╟╧┐⌐ ╝¡╣÷ ║╬╟╧░í ░¿╝╥╟╤┤┘.</p> <p>┴╓└╟: └╠ ╣µ╣²└║ CGI ╟┴╖╬▒╫╖Ñ└╠│¬ ╞»║░╟╤ │╗┐δ╟┌╡Θ╖»╕ª ┼δ╟╪ ╝¡║±╜║╟╧┤┬ ╞─└╧└╟ ╝¡║±╜║ ╝╙╡╡╕ª │⌠└╧ ╝÷ ╛°┤┘. └╠ ╣µ╣²└║ ║╕┼δ ╛╞╞──í core │╗┐δ╟┌╡Θ╖»░í ╝¡║±╜║╟╧┤┬ └╧╣▌╞─└╧┐í╕╕ └√┐δ╡╚┤┘.</p> <p>└╠ ╕≡╡Γ└║ ╛╞╞──í 1.3┐í └╓┤┬ <code>mod_mmap_static</code> ╕≡╡Γ└╟ ▒Γ┤╔└╗ ╚«└σ╟╤ ░ß░·┤┘.</p> </div> <div id="quickview"><h3 class="directives">┴÷╜├╛ε╡Θ</h3> <ul id="toc"> <li><img alt="" src="../images/down.gif" /> <a href="#cachefile">CacheFile</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#mmapfile">MMapFile</a></li> </ul> <h3>┴╓┴ª</h3> <ul id="topics"> <li><img alt="" src="../images/down.gif" /> <a href="#using">mod_file_cache ╗τ┐δ╟╧▒Γ</a></li> </ul></div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="section"> <h2><a name="using" id="using">mod_file_cache ╗τ┐δ╟╧▒Γ</a></h2> <p><code class="module"><a href="../mod/mod_file_cache.html">mod_file_cache</a></code>┤┬ ┴╓╝¡╣÷ ╝│┴ñ┐í╝¡ <code class="directive"><a href="#mmapfile">MMapFile</a></code>░· <code class="directive"><a href="#cachefile">CacheFile</a></code> ┴÷╜├╛ε╕ª ╗τ┐δ╟╧┐⌐ ╝│┴ñ╟╤ ┴ñ└√ ╞─└╧╡Θ└╗ ─│╜¼┐í └·└σ╟╤┤┘.</p> <p>╕≡╡τ ╟├╖í╞√└╠ ╡╬ ┴÷╜├╛ε╕ª ╕≡╡╬ ┴÷┐°╟╧┤┬ ░═└║ ╛╞┤╧┤┘. ┐╣╕ª ╡Θ╛ε, └⌐╡╡┐∞┴ε┐δ ╛╞╞──í┤┬ ╟÷└τ <code class="directive"><a href="#mmapstatic">MMapStatic</a></code> ┴÷╜├╛ε╕ª ┴÷┐°╟╧┴÷ ╛╩┴÷╕╕, AIX ░░└║ ┤┘╕Ñ ╟├╖í╞√└║ ╡╤ ╕≡╡╬╕ª ┴÷┐°╟╤┤┘. ┴÷┐°╟╧┴÷╛╩┤┬ ┴÷╜├╛ε╕ª ╗τ┐δ╟╥ ░µ┐∞ ╝¡╣÷ ┐└╖∙ ╖╬▒╫┐í ┐└╖∙╣«└╗ │▓▒Σ┤┘. ┴÷┐°╟╧┴÷╛╩┤┬ ┴÷╜├╛ε╕ª ╗τ┐δ╟╪╡╡ ╝¡╣÷┤┬ ╡┐└█╟╧┴÷╕╕ ╞─└╧└╗ ─│╜¼┐í └·└σ╟╧┴÷ ╛╩┤┬┤┘. ╡╬ ┴÷╜├╛ε╕ª ╕≡╡╬ ┴÷┐°╟╧┤┬ ╟├╖í╞√└╗ ╗τ┐δ╟╤┤┘╕Θ ╛ε╢▓ ╣µ╜─└╠ ┤⌡ ┴┴└║┴÷ ╜╟╟Φ╟╪║╕╢≤.</p> <h3>MMapFile ┴÷╜├╛ε</h3> <p><code class="module"><a href="../mod/mod_file_cache.html">mod_file_cache</a></code>└╟ <code class="directive"><a href="#mmapfile">MMapFile</a></code> ┴÷╜├╛ε┤┬ ╝│┴ñ╟╤ ┴ñ└√ ╞─└╧╡Θ└╗ <code>mmap()</code> ╜├╜║┼█╚ú├Γ└╗ ╗τ┐δ╟╧┐⌐ ╕▐╕≡╕«┐í ┤δ└└╟╤┤┘. ├╓╜┼ └»┤╨╜║╖∙ ┐ε┐╡├╝┴ª╢≤╕Θ ║╕┼δ └╠ ╜├╜║┼█╚ú├Γ└╠ └╓┴÷╕╕, ╛°┤┬ ┐ε┐╡├╝┴ª╡╡ └╓┤┘. ╢╟, <code>mmap()</code>╟╥ ╝÷ └╓┤┬ ╞─└╧ ┼⌐▒Γ┐═ ░│╝÷╕ª ╜├╜║┼█└╠ ┴ª╟╤╟╥ ╝÷ └╓└╕╣╟╖╬ ╣╠╕« ╜╟╟Φ╟╪║╕┤┬ ░═└╠ ┴┴┤┘.</p> <p>╝¡╣÷┤┬ ╜├└█╟╥╢º┐═ └τ╜├└█╟╥╢º╕╕ <code>mmap()</code>╟╤┤┘. ▒╫╖í╝¡ ╞─└╧╜├╜║┼█┐í╝¡ ╟╪┤τ ╞─└╧┴▀ ╟╧│¬╢≤╡╡ ║»░µ╡╟╕Θ ╝¡╣÷╕ª └τ╜├└█<em>╟╪╛▀</em> ╟╤┤┘ (<a href="../stopping.html">┴▀┤▄░· └τ╜├└█</a> ╣«╝¡ ┬ⁿ░φ). ┤┘╜├ ╕╗╟╪╝¡ ╞─└╧└╠ ║»░µ╡╟╛·┤┬╡Ñ ╝¡╣÷╕ª └τ╜├└█╟╧┴÷ ╛╩└╕╕Θ ┐╧└ⁿ╚≈ └╠╗≤╟╧░╘ ┐Σ├╗└╗ ╝¡║±╜║╟╥┴÷╡╡ ╕≡╕Ñ┤┘. └╠└ⁿ ╞─└╧└╗ ┴÷┐∞░φ(unlink) ▒╫ └┌╕«┐í ╗⌡╖╬┐ε ╞─└╧└╗ ╕╕╡Θ┤┬ ╣µ╜─└╕╖╬ ╞─└╧└╗ ╝÷┴ñ╟╪╛▀ ╟╤┤┘. <code>rdist</code>│¬ <code>mv</code>┐═ ░░└║ ┤δ┤┘╝÷└╟ ╡╡▒╕░í └╠╖▒ ╣µ╜─└╕╖╬ ╡┐└█╟╤┤┘. ╕┼╣° ├▀░í╖╬ ║╥╟╩┐Σ╟╤ <code>stat()</code> ░╦╗τ░í ╟╩┐Σ╟╧░φ └╘├Γ╖┬ ░¿╝╥╢≤┤┬ ┐°╖í └╟╡╡┐í ╣▌╟╧▒Γ╢º╣«┐í └╠ ╕≡╡Γ└║ ╞─└╧└╟ ║»╚¡╕ª ╣½╜├╟╤┤┘.</p> <h3>CacheFile ┴÷╜├╛ε</h3> <p><code class="module"><a href="../mod/mod_file_cache.html">mod_file_cache</a></code>└╟ <code class="directive"><a href="#cachefile">CacheFile</a></code> ┴÷╜├╛ε┤┬ ╝│┴ñ ┴÷╜├╛ε┐í ┐¡░┼╟╤ ╞─└╧(░· ╞─└╧╡Θ)└╗ ┐¡╛ε╝¡ ╞─└╧└╟ <em>╟┌╡Θ(handle)</em> ╚ñ└║ <em>╞─└╧ ▒Γ╝·└┌(file descriptor)</em>╕ª ─│╜¼┐í └·└σ╟╤┤┘. ╞─└╧└╗ ┐Σ├╗╟╧╕Θ ╝¡╣÷┤┬ ─│╜¼┐í╝¡ ╟┌╡Θ└╗ ├ú╛╞╝¡ ╝╥─╧ API <code>sendfile()</code>┐í (└⌐╡╡┐∞┴ε┐í╝¡┤┬ <code>TransmitFile()</code>) │╤▒Σ┤┘.</p> <p>╝¡╣÷┤┬ ╜├└█╟╥╢º┐═ └τ╜├└█╟╥╢º╕╕ ╞─└╧ ╟┌╡Θ└╗ ─│╜¼╟╤┤┘. ▒╫╖í╝¡ ╞─└╧╜├╜║┼█┐í╝¡ ─│╜¼╟╤ ╞─└╧┴▀ ╟╧│¬╢≤╡╡ ║»░µ╡╟╕Θ ╝¡╣÷╕ª └τ╜├└█<em>╟╪╛▀</em> ╟╤┤┘ (<a href="../stopping.html">┴▀┤▄░· └τ╜├└█</a> ╣«╝¡ ┬ⁿ░φ). ┤┘╜├ ╕╗╟╪╝¡ ╞─└╧└╠ ║»░µ╡╟╛·┤┬╡Ñ ╝¡╣÷╕ª └τ╜├└█╟╧┴÷ ╛╩└╕╕Θ ┐╧└ⁿ╚≈ └╠╗≤╟╧░╘ ┐Σ├╗└╗ ╝¡║±╜║╟╥┴÷╡╡ ╕≡╕Ñ┤┘. └╠└ⁿ ╞─└╧└╗ ┴÷┐∞░φ(unlink) ▒╫ └┌╕«┐í ╗⌡╖╬┐ε ╞─└╧└╗ ╕╕╡σ┤┬ ╣µ╜─└╕╖╬ ╞─└╧└╗ ╝÷┴ñ╟╪╛▀ ╟╤┤┘. <code>rdist</code>│¬ <code>mv</code>┐═ ░░└║ ┤δ┤┘╝÷└╟ ╡╡▒╕░í └╠╖▒ ╣µ╜─└╕╖╬ ╡┐└█╟╤┤┘.</p> <div class="note"><h3>┴╓└╟</h3> <p>╡≡╖║┼Σ╕«└╟ ╕≡╡τ ╞─└╧└╗ └τ▒═└√└╕╖╬ ─│╜¼┐í └·└σ╟╧┤┬ ┴÷╜├╛ε┤┬ ╛°┤┘. ┤δ╜┼ ┤┘└╜░· ░░└╠ ╟╪║╕╢≤... <code class="directive"><a href="../mod/core.html#include">Include</a></code> ┴÷╜├╛ε╕ª ┬ⁿ░φ╟╧┐⌐ ┤┘└╜░· ░░└║ ╕φ╖╔╛ε╕ª ╜╟╟α╟╤┤┘:</p> <div class="example"><p><code> find /www/htdocs -type f -print \<br /> | sed -e 's/.*/mmapfile &/' > /www/conf/mmap.conf </code></p></div> </div> </div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="directive-section"><h2><a name="CacheFile" id="CacheFile">CacheFile</a> <a name="cachefile" id="cachefile">┴÷╜├╛ε</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">╝│╕φ:</a></th><td>╜├└█╜├ ┐⌐╖» ╞─└╧ ╟┌╡Θ└╗ ─│╜¼╟╤┤┘</td></tr> <tr><th><a href="directive-dict.html#Syntax">╣«╣²:</a></th><td><code>CacheFile <var>file-path</var> [<var>file-path</var>] ...</code></td></tr> <tr><th><a href="directive-dict.html#Context">╗τ┐δ└σ╝╥:</a></th><td>┴╓╝¡╣÷╝│┴ñ</td></tr> <tr><th><a href="directive-dict.html#Status">╗≤┼┬:</a></th><td>Experimental</td></tr> <tr><th><a href="directive-dict.html#Module">╕≡╡Γ:</a></th><td>mod_file_cache</td></tr> </table> <p><code class="directive">CacheFile</code> ┴÷╜├╛ε┤┬ ╝¡╣÷░í ╜├└█╟╥╢º ┐⌐╖» ╞─└╧└╗ ┐¡░φ(open) ╞─└╧╡Θ└╟ ╟┌╡Θ└╗ ─│╜¼┐í └·└σ╟╤┤┘. ╝¡╣÷ ┴╛╖ß╜├ └┌╡┐└╕╖╬ ─│╜¼╟╤ ╞─└╧└╟ ╟┌╡Θ└╗ ┤▌┤┬┤┘(close). ╞─└╧╜├╜║┼█┐í╝¡ ╞─└╧└╠ ║»░µ╡╟╕Θ ╞─└╧└╗ ┤┘╜├ ─│╜¼╟╧▒Γ└º╟╪ ╝¡╣÷╕ª └τ╜├└█╟╪╛▀ ╟╤┤┘.</p> <p><var>file-path</var> ╛╞▒╘╕╒╞«╕ª ┴╢╜╔╟╪╢≤. ╛╞▒╘╕╒╞«┤┬ ╛╞╞──í└╟ URL-╞─└╧╕φ ║»╚» ╟┌╡Θ╖»░í ╕╕╡τ ╞─└╧╜├╜║┼█ ░µ╖╬┐═ ┴ñ╚«╚≈ └╧─í╟╪╛▀ ╟╤┤┘. ╟╤╣° ┤⌡ ║╥╟╩┐Σ╟╤ <code>stat()</code> ╜├╜║┼█╚ú├Γ└╠ ╟╩┐Σ╟╧▒Γ╢º╣«┐í inode│¬ ╜╔║╝╕╡┼⌐ <em>╡ε</em>└╗ ░µ╖╬╕ª ┴÷┴ñ╟╥ ╝÷ ╛°┤┘. └╠ ╕≡╡Γ└║ <code class="module"><a href="../mod/mod_alias.html">mod_alias</a></code>│¬ <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>╖╬ └τ└█╝║╟╤ ╞─└╧╕φ└╗ ┤┘╖Ω ╝÷ └╓▒Γ╡╡ ╛°▒Γ╡╡ ╟╧┤┘.</p> <div class="example"><h3>┐╣┴ª</h3><p><code> CacheFile /usr/local/apache/htdocs/index.html </code></p></div> </div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="directive-section"><h2><a name="MMapFile" id="MMapFile">MMapFile</a> <a name="mmapfile" id="mmapfile">┴÷╜├╛ε</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">╝│╕φ:</a></th><td>╜├└█╜├ ┐⌐╖» ╞─└╧└╗ ╕▐╕≡╕«┐í ┤δ└└╟╤┤┘</td></tr> <tr><th><a href="directive-dict.html#Syntax">╣«╣²:</a></th><td><code>MMapFile <var>file-path</var> [<var>file-path</var>] ...</code></td></tr> <tr><th><a href="directive-dict.html#Context">╗τ┐δ└σ╝╥:</a></th><td>┴╓╝¡╣÷╝│┴ñ</td></tr> <tr><th><a href="directive-dict.html#Status">╗≤┼┬:</a></th><td>Experimental</td></tr> <tr><th><a href="directive-dict.html#Module">╕≡╡Γ:</a></th><td>mod_file_cache</td></tr> </table> <p><code class="directive">MMapFile</code> ┴÷╜├╛ε┤┬ ╝¡╣÷░í ╜├└█╟╥╢º (░°╣Θ└╕╖╬ ▒╕║╨╟╤ ╛╞▒╘╕╒╞«╖╬ ┴÷┴ñ╟╤) ┐⌐╖» ╞─└╧└╗ ╕▐╕≡╕«┐í ┤δ└└╟╤┤┘(map). ╝¡╣÷ ┴╛╖ß╜├ └┌╡┐└╕╖╬ ┤δ└└└╗ ╟¼┤┘(unmap). ╞─└╧╜├╜║┼█┐í╝¡ ╞─└╧└╠ ║»░µ╡╟╕Θ ╞─└╧╡Θ└╗ ┤┘╜├ <code>mmap()</code>╟╧▒Γ└º╟╪ ├╓╝╥╟╤ ╝¡╣÷┐í <code>HUP</code>└╠│¬ <code>USR1</code> ╜├▒╫│╬└╗ ║╕│╗╛▀ ╟╤┤┘.</p> <p><var>file-path</var> ╛╞▒╘╕╒╞«╕ª ┴╢╜╔╟╪╢≤. ╛╞▒╘╕╒╞«┤┬ ╛╞╞──í└╟ URL-╞─└╧╕φ ║»╚» ╟┌╡Θ╖»░í ╕╕╡τ ╞─└╧╜├╜║┼█ ░µ╖╬┐═ ┴ñ╚«╚≈ └╧─í╟╪╛▀ ╟╤┤┘. ╟╤╣° ┤⌡ ║╥╟╩┐Σ╟╤ <code>stat()</code> ╜├╜║┼█╚ú├Γ└╠ ╟╩┐Σ╟╧▒Γ╢º╣«┐í inode│¬ ╜╔║╝╕╡┼⌐ <em>╡ε</em>└╗ ░µ╖╬╕ª ┴÷┴ñ╟╥ ╝÷ ╛°┤┘. └╠ ╕≡╡Γ└║ <code class="module"><a href="../mod/mod_alias.html">mod_alias</a></code>│¬ <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>╖╬ └τ└█╝║╟╤ ╞─└╧╕φ└╗ ┤┘╖Ω ╝÷ └╓▒Γ╡╡ ╛°▒Γ╡╡ ╟╧┤┘.</p> <div class="example"><h3>┐╣┴ª</h3><p><code> MMapFile /usr/local/apache/htdocs/index.html </code></p></div> </div> </div> <div class="bottomlang"> <p><span>░í┤╔╟╤ ╛≡╛ε: </span><a href="../en/mod/mod_file_cache.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../ko/mod/mod_file_cache.html" title="Korean"> ko </a></p> </div><div id="footer"> <p class="apache">Copyright 1995-2006 The Apache Software Foundation or its licensors, as applicable.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> <p class="menu"><a href="../mod/">╕≡╡Γ</a> | <a href="../mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">┐δ╛ε</a> | <a href="../sitemap.html">╗τ└╠╞«╕╩</a></p></div> </body></html>